package learn.basics.final1;

class Person {
    private final String name_;

    public Person() {
        name_ = "hhy";
    }

    public Person(String name) {
        this.name_ = name;
    }

    public String GetName() {
        return name_;
    }
}

class MyClass{
    public void Method(){
        System.out.println("父类方法执行！！！");
    }
}

class MySubClass extends MyClass{
    @Override
    public void Method(){
        System.out.println("子类方法执行！！！");
    }
}

class Demo1Final {
    public static void Test() {
        final int num = 200;
        System.out.println(num);

        final int num3;
        num3=30;

        MyClass c=new MySubClass();
        c.Method();
    }
}



public class TestFinal {
    public static void main(String[] args) {
        Demo1Final.Test();
    }
}
